import request from "@/utils/requestMd5";

export function get_empty_members(params) {
  return request({
    url: "/empty/members",
    method: "get",
    params
  });
}

export function get_empty_membersnot(params) {
  return request({
    url: "/empty/membersNot",
    method: "get",
    params
  });
}

export function bind_user(data) {
  return request({
    url: "/empty/bind",
    method: "post",
    data: data
  });
}

export function batch_bind_user(data) {
  return request({
    url: "/empty/batchBind",
    method: "post",
    data: data
  });
}

export function unbind_user(data) {
  return request({
    url: "/empty/unbind",
    method: "post",
    data: data
  });
}

export function batch_unbind_user(data) {
  return request({
    url: "/empty/batchUnbind",
    method: "post",
    data: data
  });
}

// 作废订单
export function batch_invalid(data) {
  return request({
    url: "/empty/invalid",
    method: "post",
    data: data
  });
}

export function get_empty_index(params) { //未对账
  return request({
    url: "/empty/index",
    method: "get",
    params
  });
}

export function getCompletedBill(params) { //已对账
  return request({
    url: "/empty/emptyIndex",
    method: "get",
    params
  });
}

export function get_empty_info(params) {
  return request({
    url: "/empty/info",
    method: "get",
    params
  });
}

export function addOrder(data) { //创建虚单
  return request({
    url: "empty/add",
    method: "post",
    data
  });
}

export function batch_unbind_print(data) {
  return request({
    url: "/empty/print",
    method: "post",
    data
  });
}

export function printEmpty(data) { //打印已对账订单
  return request({
    url: "/empty/printEmpty",
    method: "post",
    data
  });
}


export function batch_unbind_export(data) {
  return request({
    url: "/empty/export",
    method: "post",
    responseType: "blob",
    data: data
  });
}


export function exportListEmpty(data) {//已对账批量导出
  return request({
    url: "/empty/export_list_empty",
    method: "post",
    responseType: "blob",
    data: data
  });
}

export function exportEmpty(data) { //已对账单个导出
  return request({
    url: "/empty/exportEmpty",
    method: "post",
    responseType: "blob",
    data: data
  });
}



export function getMembers(params) { //其他对账选用户
  return request({
    url: "/empty/getMembers",
    method: "get",
    params
  });
}

export function batch_unbind_account(data) {
  return request({
    url: "/empty/account",
    method: "post",
    data: data
  });
}

export function export_send_models(params) {
  return request({
    url: "/member_export_models/export_send_models",
    method: "get",
    responseType: "blob",
    params
  });
}

export function export_list(params){
  return request({
    url: "/empty/export_list",
    method: "post",
    responseType: "blob",
    params
  });
}

export function batchCalcuate(data) {   //  其他对账-批量处理
  return request({
    url: "/empty/batchCalcuate",
    method: "post",
    data
  });
}
export function changeTableData(data) {   //  其他对账-列表修改数值
  return request({
    url: "/empty/verb",
    method: "post",
    data
  });
}
